package com.bee.admin.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.social.security.SocialAuthenticationFilter;
import org.springframework.social.security.SpringSocialConfigurer;
import org.springframework.stereotype.Component;

public class QQSpringSocialConfigure extends SpringSocialConfigurer  {
	
	private String filterProcessesUrl;
	
	public QQSpringSocialConfigure(String filterPath) {
		this.filterProcessesUrl = filterPath;
	}
	
	@Override
	protected <T> T postProcess(T object) {
		SocialAuthenticationFilter filter = (SocialAuthenticationFilter) super.postProcess(object);
        filter.setFilterProcessesUrl("/connect");
        filter.setSignupUrl("/register");
        return (T) filter;
	}
}
